/**
 * 
 */
package orderProcessingProcess.util;

import java.text.SimpleDateFormat;
import java.util.Calendar;

/**
 * @author charly
 *
 */
public class AIC_log {

    public static void print(String type, String message) {
    	System.out.println("[" + type + "]" + " " + getDate() + " :: " + message);		
    }
    
    public static void printerr(String type, String message) {
    	System.err.println("[" + type + "]" + " " + getDate() + " :: " + message);		
    }


	/**
	 * getDate
	 * formats the date
	 * @return
	 */
	private static String getDate()
	{
		return (new SimpleDateFormat("HH:mm:ss")).format(Calendar.getInstance().getTime());
	}
}
